SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 51109: Generating histogram MAMetadata in SAS® Customer Intelligence fails when you are using the SQL procedure

DetailsAboutRate It

You might encounter an error similar to the following in the SASCustIntelCore6.1.log when you are generating histogram MAMetadata:

ERROR 2013-07-25 14:46:40,291
MetadataSQLHistogramGenerator$NumericHistogramQueryGenerator TID[CIExec-11]
Exception running metadata query:
com.sas.iquery.dataretrieval.DataRetrievalException: Error while submitting SAS code
1          options Locale=en_US;
2          LIBNAME MAMeta ORACLE  PATH=MAMeta  SCHEMA=xxx  USER=sasdemo
PASSWORD=XXX ;
          Libname MAMeta
'D:\sas\ServerConfig\Lev1\Applications\SASCustomerIntelligence\CampaignManagement\Data\MAMeta';
7          libname MetaTMP
'D:\SAS\ServerConfig\Lev1\Applications\SASCustomerIntelligence\CampaignManagemen
t\Data\MAMORoot/AAGBBGLS2RF3SYHN';
8          /*root.Date Of Birth:Year:DATE_WITH_TIME:SUBJECT_ID_CUSTOMER*/
9
10         PROC SQL;
11         Create table MetaTMP.MAM_20600004EAECRC2S2JB3UYDP as
12         SELECT
13          (CASE WHEN  (  ( table0.DATE_OF_BIRTH )  )  IS NULL THEN .
14           WHEN  (  ( table0.DATE_OF_BIRTH )  )  <
'01Jan1001:00:00:00'dt THEN 1
ERROR: Invalid date/time/datetime constant '01Jan1001:00:00:00'dt.

This error occurs when you are using PROC SQL as a method and the underlying data contains a date with ranges. You are able to generate histogram MAMetadata using the SUMMARY procedure.

This problem occurs because the code that generates the numeric histogram data was modified. To avoid this error, either use PROC SUMMARY as a method or use the new Extended Attribute on the date data item only:

ForceMetaGenType=SQL or ForceMetaGenType=Summary


Operating System and Release Information

Product FamilyProductSystemProduct ReleaseSAS Release
ReportedFixed*ReportedFixed*
SAS SystemSAS Customer Intelligence StudioMicrosoft® Windows® for x646.16.39.4 TS1M0
Microsoft Windows 8 Enterprise x646.16.39.4 TS1M0
Microsoft Windows 8 Pro x646.16.39.4 TS1M0
Microsoft Windows Server 2008 R26.16.39.4 TS1M0
Microsoft Windows Server 2008 for x646.16.39.4 TS1M0
Microsoft Windows Server 2012 Datacenter6.16.39.4 TS1M0
Microsoft Windows Server 2012 Std6.16.39.4 TS1M0
Windows 7 Enterprise x646.16.39.4 TS1M0
Windows 7 Professional x646.16.39.4 TS1M0
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.